main:
while !($player)
wait 1
while(1) {
for (local.i = 1; local.i <= $player.size; local.i++) {
wait 1
if ($player[local.i].nolean == NIL) {
thread nolean $player[local.i]
}
}
}
end
Error in console:
Code:
Going to CS_ZOMBIE for G|u|N-Appelpitje|!A|
if ($player[local.i].nolean == NIL) { (global/nolean3.scr, 9)
if ($player[local.i]^
^~^~^ Script Error: Field 'nolean' applied to NULL listener
local.player.nolean = 1 (global/nolean3.scr, 18)
local.player^
^~^~^ Script Error: Field 'nolean' applied to NULL listener
if ($player[local.i].nolean == NIL) { (global/nolean3.scr, 9)
if ($player[local.i]^
^~^~^ Script Error: Field 'nolean' applied to NULL listener
local.player.nolean = 1 (global/nolean3.scr, 18)
local.player^
^~^~^ Script Error: Field 'nolean' applied to NULL listener
Also, how do i disable lean when the player is crouching? Its tottaly disabled now
I think if have to put something in the else function? I tried this:
Code:
nolean local.player:
local.player.nolean = 1
while (local.player) {
local.position = local.player getposition
if (local.position == "crouching") {
println "im crouching"
local.player stufftext "+leanleft;+leanright"
wait 0.3
}
else {
local.player stufftext "-leanleft;-leanright"
wait 0.3
}
}
end
But then the player has shocking leaning, im not sure how to just disable the +leanright and +leanleft